Trying to Understand PEG

نویسنده

  • Roman R. Redziejowski
چکیده

Parsing Expression Grammar (PEG) encodes a recursivedescent parser with limited backtracking. Its properties are useful in many applications. In its appearance, PEG is almost identical to a grammar in the Extended Backus-Naur Form (EBNF), but may define a different language. Recent research formulated some conditions under which PEG is equivalent to its interpretation as EBNF. However, PEG has a useful feature, namely syntactic predicate, that is alien to EBNF. The equivalence results apply thus only to PEG without predicates. The paper considers PEG with predicates. Not being able to investigate equivalence, the paper turns to the limited backtracking that is the main source of difficulty in understanding PEG. It is shown that the limitation of backtracking has no effect under conditions similar to those for PEG without predicates. There is, in general, no mechanical way to check these conditions, but they can be often checked by inspection. The paper outlines an experimental tool to facilitate such inspection.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Characterization of the Entropy--Gibbs Transformations

Let h be a finite dimensional complex Hilbert space, b(h)+ be the set of all positive semi-definite operators on h and Phi is a (not necessarily linear) unital map of B(H) + preserving the Entropy-Gibbs transformation. Then there exists either a unitary or an anti-unitary operator U on H such that Phi(A) = UAU* for any B(H) +. Thermodynamics, a branch of physics that is concerned with the study...

متن کامل

A square peg in a round hole.

My fear is that the hopes that I have for my practice, and the beliefs I have come to hold regarding how I would like to teach will be worn down by the myriad realities and pressures I am likely to experience as a beginning teacher. In many ways I suspect that the teaching tools with which I have been equipped by my pre-service training, based largely on constructivist principles, may ill-prepa...

متن کامل

[Development of pegylated adenovirus vector for cancer gene therapy].

Adenovirus vectors (Ad) have been frequently used for cancer gene therapy research because of their high gene transduction efficiency. However, systemic administration of conventional Ad can lead to the acute accumulation of virus particles and transgene expression in the liver, which may cause severe hepatotoxicity. For these reasons, clinical application of Ad for systemic administration has ...

متن کامل

Lived Experiences of Elderly Patients with Coronary Artery Disease: A Hermeneutic Phenomenological Study

Introduction: Coronary artery disease is the most common type of cardiovascular disease. Despite the increasing number of patients with coronary artery disease, the lived experiences of these patients have remained unknown. The purpose of the study was to understand the lived experiences of elderly patients with coronary artery disease. Methods: This qualitative research was conducted usin...

متن کامل

Interaction of poly(ethylene glycol)-conjugated phospholipids with supported lipid membranes and their influence on protein adsorption

We studied real-time interaction between poly(ethylene glycol)-conjugated phospholipids (PEG-lipids) and a supported lipid membrane by surface plasmon resonance (SPR) spectroscopy to understand dynamic behaviors of PEG-lipids on living cell membranes. Supported lipid membranes formed on a hydrophobic surface were employed as a model of living cell membrane. We prepared three kinds of PEG-lipids...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Fundam. Inform.

دوره 157  شماره 

صفحات  -

تاریخ انتشار 2016